package cn.bugstack.domain.auth.service;

import java.io.IOException;

/**
 * @Author: 小新
 * @Date: 2025/3/21 14:42
 * @Description:
 * @Version: v1.0
 */
public interface ILoginService {

    /**
     * 生成 ticket
     * @return
     * @throws Exception
     */
    String createQrCodeTicket() throws Exception;


    /**
     * 确认登录
     * @param ticket
     * @return
     */
    String checkLogin(String ticket);

    /**
     * 保存登录状态
     * @param ticket
     * @param openId
     */
    void saveLoginState(String ticket, String openId) throws IOException;
}
